package com.lt.test.provider.service;

import com.alibaba.dubbo.config.annotation.Service;
import com.lt.test.api.KtMemberService;
import com.lt.test.provider.dao.KtOtherDao;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;
import java.util.Map;

@Service(version = "1.0.0")
public class KtMemberServiceImpl implements KtMemberService{
	@Autowired
	KtOtherDao ktOtherDao;
	
	@Override
	public List<Map<String, Object>> getMemberInfo(Map parameter) {
		// TODO Auto-generated method stub
		String mobile = parameter.get("mobile") == null ? "17685311618" : parameter.get("mobile").toString();
		return ktOtherDao.getMemberInfo(mobile);
	}

	@Override
	public List<Map<String, Object>> getTopShopListLocation(Map parameter) {
		// TODO Auto-generated method stub
		String mobile = parameter.get("mobile") == null ? "17685311618" : parameter.get("mobile").toString();
		return ktOtherDao.getTopShopListLocation(mobile);
	}

	@Override
	public List<Map<String, Object>> getTopBuyProd(Map parameter) {
		// TODO Auto-generated method stub
		String mobile = parameter.get("mobile") == null ? "17685311618" : parameter.get("mobile").toString();
		return ktOtherDao.getTopBuyProd(mobile);
	}

	@Override
	public List<Map<String, Object>> getConsumeRecord(Map parameter) {
		// TODO Auto-generated method stub
		String mobile = parameter.get("mobile") == null ? "17685311618" : parameter.get("mobile").toString();
		return ktOtherDao.getConsumeRecord(mobile);
	}

}
